<%--
  Created by IntelliJ IDEA.
  User: 淡写成灰
  Date: 2018/10/12
  Time: 10:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>登录</title>
</head>
<style>
    body{ text-align:center}
    .div{
        position: absolute;
        width: 464px;
        height: 220px;
        left: 50%;
        top: 450px;
        margin-left: -200px;
        margin-top: -100px;
        border: 1px solid #00F
    }
    .btn{
        margin: 50px 0 20px 0;
        width: 140px;
        height: 40px;
        background: #4e61a7;
        color: white;
        font-size: 18px;
        border-radius:15px ;
    }
    .txt{
        width: 300px;
        height: 35px;
    }
</style>
<body>
<div class="div">
    <form action="loginCheck" method="get">
        <div id="div_menu">
            <div id="div_login" style="align: center">
                账号：<input type="text" class="txt" id="userName" name="userName" style="margin-top: 10px;"><br><br>
                密码：<input type="password" class="txt" id="pwd" name="pwd"><br>
                <input type="submit" class="btn" value="登录">
                &nbsp;&nbsp;&nbsp;
                <input type="reset" class="btn"  value="取消">
            </div>
        </div>
    </form>
    <c:if test="${param.message=='LOGIN_TIME_OUT'}">
        <div style="color: red;size: 20px">登录超时，请重新登录</div>
    </c:if>
    <c:if test="${param.message=='LOGIN_ERROR'}">
        <div style="color: red;size:20px;">账号或密码错误，请仔细检查</div>
    </c:if>
    <div style="color: #DBDBDB">${param.message}</div>
</div>
</body>
</html>
